package com.strato.mvc.pagination.v1_0_0.model;

public class Pagination {

	private long pageSize;
	
	private long pageIndex;
	
	private long total;

	public long getPageSize() {
		return pageSize;
	}

	public void setPageSize(long pageSize) {
		this.pageSize = pageSize;
	}

	public long getPageIndex() {
		return pageIndex;
	}

	public void setPageIndex(long pageIndex) {
		this.pageIndex = pageIndex;
	}

	public long getTotal() {
		return total;
	}

	public void setTotal(long total) {
		this.total = total;
	}
	
	public long getPageStart(){
		return this.getPageSize() * (this.getPageIndex()-1);
	}
	
}
